package com.xuzhen.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xuzhen.dao.MonthReportDao;
import com.xuzhen.domain.MonthReport;
import com.xuzhen.domain.User;
import com.xuzhen.service.MonthReportService;

@Transactional
@Service("monthReportService")
public class MonthReportServiceImpl implements MonthReportService {

	@Autowired
	private MonthReportDao monthReportDao;

	@Override
	public MonthReport add(MonthReport monthReport) {
		monthReportDao.save(monthReport);
		return monthReport;
	}

	@Override
	public MonthReport delete(MonthReport monthReport) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public MonthReport findByUserAndTypeAndDate(User user, Date date, int type) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public MonthReport update(MonthReport monthReport) {
		// TODO Auto-generated method stub
		return null;
	}

}
